<extend name="Public:base" />
<block name="header" >
    <span class="action-span"><a href="">优惠券列表</a></span>
    <span class="action-span1"><a href="">武汉同兴一站办企业服务有限公司 管理中心</a></span>
    <!--  <span id="search_id" class="action-span1"> - 商品列表 </span>-->
    <div style="clear:both"></div>
</block>

<block name="body">


    <!-- 商品列表 -->

    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>收货地址ID</th>
                <th>地区ID</th>
                <th>收货地址</th>
                <th>联系人</th>
                <th>手机号</th>
                <th>用户id</th>
                <th>是否默认</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            <volist name="list" id="vo">
                <tr>
                    <td align="center">{$vo.address_id}</td>
                    <td align="center"><span>{$vo.region_id}</span></td>
                    <td align="center"><span>{$vo.address}</span></td>
                    <td align="center"><span>{$vo.contacts}</span></td>
                    <td align="center"><span>{$vo.phone}</span></td>
                    <td align="center"><span>{$vo.username}</span></td>
                    <if condition="$vo.is_default eq 0">
                        <td align="center"><span>不是</span></td>
                        <else />
                        <td align="center"><span>是</span></td>
                    </if>
                    <if condition="$vo.state eq 0">
                        <td align="center"><span>已删除</span></td>
                        <else />
                        <td align="center"><span>正常</span></td>
                    </if>
                    <td align="center">
                        <a href="{:U('edit','id='.$vo['address_id'])}">编辑</a>
                        <a href="{:U('del','id='.$vo['address_id'])}" >删除</a>
                    </td>
                </tr>
            </volist>
        </table>
        <!-- 分页开始 -->
        <table id="page-table" cellspacing="0">
            <tr>
                <td width="80%">&nbsp;</td>
                <td align="center" nowrap="true">
                    {$data.pageStr}
                </td>
            </tr>
        </table>
        <!-- 分页结束 -->
    </div>
</block>